import { _decorator, Component, Node } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('Race')
export class Race extends Component {
    item_name: string;
    description: string;
    start() {

    }

    update(deltaTime: number) {
        
    }

    constructor(name: string='未知物品', description: string='我也不知道是什么，丢了吧') {
        // 调用父类的构造函数
        super();
        // 设置物品的名称
        this.item_name = name;
        // 设置物品的描述
        this.description = description;
    }
}


